package JLB_Chapter_05;
// StringToArray
public class code_05_12 {
    public static void main(String[] args) {
        String str = "这是一个字符串。";
        char[] ch = str.toCharArray();
        for (int i = 0; i < ch.length; i++) {
            System.out.println("数组第" + i + "个元素为：" + ch[i]);
        }
    }
}
